package com.s3.khospitalds.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.s3.khospitalds.entity.Trashy;
import com.s3.khospitalds.mapper.TrashyMapper;
import com.s3.khospitalds.service.TrashyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: xw
 * @CreateTime: 2025/3/4
 * @Description: 药品浪费表
 * @Version: 1.0
 */
@Service
public class TrashyServiceImpl extends ServiceImpl<TrashyMapper, Trashy> implements TrashyService {
    @Autowired
    private TrashyMapper trashyMapper;

    @Override
    public List<Trashy> selectAllTrashy() {
        return trashyMapper.selectAllTrashy();
    }

    @Override
    public int updateTrashy(Trashy trashy) {
        return trashyMapper.updateTrashy(trashy);
    }

    @Override
    public int insertTrashy(Trashy trashy) {
        return trashyMapper.insertTrashy(trashy);
    }

    @Override
    public int deleteTrashy(int id) {
        return trashyMapper.deleteTrashy(id);
    }

    @Override
    public int deleteAllTrashy() {
        return trashyMapper.deleteAllTrashy();
    }
}
